package com.itsxb.service.impl;

import com.itsxb.pojo.domain.DriverWallet;
import com.itsxb.mapper.DriverWalletMapper;
import com.itsxb.service.IDriverWalletService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * <p>
 * 司机的钱包 服务实现类
 * </p>
 *
 * @author 奇天书
 * @since 2023-12-22
 */
@Service
public class DriverWalletServiceImpl extends ServiceImpl<DriverWalletMapper, DriverWallet> implements IDriverWalletService {

    @Override
    public void initDriverWallet(Long id) {
        DriverWallet driverWallet = new DriverWallet();
        driverWallet.setId(id);
        driverWallet.setCreateTime(new Date());
        super.save(driverWallet);
    }
}
